package com.itheima.exerciseTest.method01_09.method3;

public class Test {
    public static void main(String[] args) {
        Cat c = new Cat();
        c.setName("大橘");
        c.setAge(1);
        c.eat();
        System.out.println(c.getName() + "..." + c.getAge());

        Dog d = new Dog();
        d.setName("金毛");
        d.setAge(2);
        d.eat();
        System.out.println(d.getName() + "..." + d.getAge());
    }
}
